package csl.mq.rabbitmq.old.base;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import lombok.Data;

/**
 * @Description: TODO
 * @author: 隔山海
 * @date: 2021年08月29日 19:39
 */
@Data
public abstract class BaseMessage {
    private long msgId;

    public BaseMessage(){
        Snowflake snowflake = IdUtil.getSnowflake(1, 1);
        this.msgId = snowflake.nextId();
        }
}
